<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .d1{
            width: 200px;
            height: 200px;
            border: 1px solid red;
            /* margin: 50px 40px 30px 20px; */
            /* text-align: center; */
            margin:100px auto 0;
        }
        .p1{
            border:1px solid red;
            padding: 20px;
        }
        .s1{
            border:1px solid red;
            width: 100px;
            height: 100px;
            /* padding:50px; */
            display: inline-block;
        }
    </style>
</head>
<body>
    <div class="d1">

    </div>
    <p class="p1">段落</p>
    <span class="s1">文本</span>
    <span>文本</span>
</body>
</html>